#ifndef _KEY_H_
#define _KEY_H_

#ifndef TRUE
#define TRUE 	1
#endif

#ifndef FALSE
#define FALSE 	0
#endif


#define KEY_UP_0		0x01
#define KEY_DOWN_0 		0x02
#define KEY_HOLD_0 		0x03

#define KEY_UP_1  		0x11
#define KEY_DOWN_1		0x12
#define KEY_HOLD_1		0x13

#define KEY_UP_2  		0x21
#define KEY_DOWN_2		0x22
#define KEY_HOLD_2		0x23


#define KEY_OFF         0x00


void InitKeyIn( void );
void TimeKeyIn( void );
void KeyInTask( void );
void KeyInMail(unsigned char act, unsigned char size, char * pbuf);

#endif //_KEY_H_